<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"D:\phpStudy\WWW\mangmeshi/./application/admin\view\train\updateTrain.html";i:1534591166;}*/ ?>
<div>
    <form class="form-horizontal bv-form"  role="form"  id="updateForm">
        <input type="hidden" name="subject_id" value="<?php echo $data['subject_id']; ?>">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">试题名称</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" value="<?php echo $data['subject_question']; ?>" name="subject_question">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">选项 a</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" value="<?php echo $data['subject_a']; ?>" name="subject_a">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">选项 b</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" value="<?php echo $data['subject_b']; ?>" name="subject_b">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">选项 c</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" value="<?php echo $data['subject_c']; ?>" name="subject_c">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">选项 d</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" value="<?php echo $data['subject_d']; ?>" name="subject_d">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">答案</label>
                <div class="col-sm-5">
                    <select class="form-control" name="subject_answer" style="height: 35px;">
                        <option value="1" <?php if($data['subject_answer']==1): ?> selected <?php endif; ?>>a</option>
                        <option value="2" <?php if($data['subject_answer']==2): ?> selected <?php endif; ?>>b</option>
                        <option value="3" <?php if($data['subject_answer']==3): ?> selected <?php endif; ?>>c</option>
                        <option value="4" <?php if($data['subject_answer']==4): ?> selected <?php endif; ?>>d</option>
                    </select>
                </div>
            </div>

        </fieldset>
    </form>

</div>




